How do I keep co-worker from writing horrible code? [closed]

Posted by Drew H on Programmers See other posts from Programmers or by Drew H
Published on 2012-10-11T21:48:35Z Indexed on 2012/10/12 3:48 UTC
Read the original article Hit count: 259

Filed under:
|

Possible Duplicate:
How do I approach a coworker about his or her code quality?

I can handle the for in.. without the hasOwnProperty filtering. I can handle the blatant disregard for the libraries I've used in the past and just using something else. I can even handle the functions with 25 parameters.

But I can't handle this.

var trips = new Array();
var flights = new Array();
var passengers = new Array();
var persons = new Array();
var requests = new Array();

I've submitted documents on code style, had code reviews, gave him Douglas Crockford's book, shown him presentations, other peoples githubs, etc.

He still show the same horrible Javascript style. How else could I approach this guy? Thanks for any help.

© Programmers or respective owner

Related posts about JavaScript

Related posts about coding-style